package com.yazdee;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@SuppressWarnings("serial")
public class ProductSearch extends HttpServlet {

	public void doGet(HttpServletRequest req, HttpServletResponse resp)
	throws IOException {
		   StringBuffer buffer=new StringBuffer();
		    
		    String requestUrl = null;
		   	
				/*	resp.getWriter().println("<Response>" +
												"An error occured while trying to contact RetailMart servers. Please try after sometime" +
											 "</Response>");*/
		    
				buffer.append("<Response>\n");
				buffer.append("<product>");
				buffer.append("<name>"+"Wills Lifestyle Eclectic Shirt Dress"+"</name>");
				buffer.append("<SKU>"+"wills-lifestyle-eclectic-shirt"+"</SKU>");
				buffer.append("<price>"+"Rs 2,129.70"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/2009indianseller/thumbnails/Thumbnails_Women_Casual24.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("<product>");
				buffer.append("<name>"+"Khadi cotton kurti with thread work"+"</name>");
				buffer.append("<SKU>"+"khadi-cotton-kurti-with-thread12"+"</SKU>");
				buffer.append("<price>"+"Rs 686.00"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/sanginionline/thumbnails/Thumbnails_2833.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("<product>");
				buffer.append("<name>"+"Red Embroidered Georgette Top"+"</name>");
				buffer.append("<SKU>"+"red-embroidered-georgette-top"+"</SKU>");
				buffer.append("<price>"+"Rs 1,470.00"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/sanginionline/thumbnails/Thumbnails_2845.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("<product>");
				buffer.append("<name>"+"Wills Lifestyle Kayo Shirt Dress"+"</name>");
				buffer.append("<SKU>"+"wills-lifestyle-kayo-shirt"+"</SKU>");
				buffer.append("<price>"+"Rs 2,004.35"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/2009indianseller/thumbnails/Thumbnails_Women_Casual19.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("<product>");
				buffer.append("<name>"+"Gorgeous Handloom cotton kurta with Traditional KALAMKAARI print "+"</name>");
				buffer.append("<SKU>"+"gorgeous-handloom-cotton-kurta"+"</SKU>");
				buffer.append("<price>"+"Rs 980.00"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/sanginionline/thumbnails/Thumbnails_2768.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("<product>");
				buffer.append("<name>"+"Wills Lifestyle Blueberry Woven Top"+"</name>");
				buffer.append("<SKU>"+"wills-lifestyle-blueberry"+"</SKU>");
				buffer.append("<price>"+"Rs 1,753.65"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/2009indianseller/thumbnails/Thumbnails_Women_Casual25.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("<product>");
				buffer.append("<name>"+"Purple Embroidered Georgette Top"+"</name>");
				buffer.append("<SKU>"+"purple-embroidered-georgette"+"</SKU>");
				buffer.append("<price>"+"Rs 1,421.00"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/sanginionline/thumbnails/Thumbnails_2841.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("<product>");
				buffer.append("<name>"+"Sea Green Embroidered Georgette Top"+"</name>");
				buffer.append("<SKU>"+"sea-green-embroidered-georgette3"+"</SKU>");
				buffer.append("<price>"+"Rs 1,568.00"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/sanginionline/thumbnails/Thumbnails_2849.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("<product>");
				buffer.append("<name>"+"Cotton Embroidered Kurti"+"</name>");
				buffer.append("<SKU>"+"cotton-embroidered-kurti16"+"</SKU>");
				buffer.append("<price>"+"Rs 833.00"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/sanginionline/thumbnails/Thumbnails_2808.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("<product>");
				buffer.append("<name>"+"Sequined Large Paisley Design Print Reddish Color Kurti"+"</name>");
				buffer.append("<SKU>"+"sequined-large-paisley-design3"+"</SKU>");
				buffer.append("<price>"+"Rs 827.12"+"</price>");
				buffer.append("<imageURL>"+"http://retailmart.com/is-bin/intershop.static/WFS/SellSmart-RetailPortal-Site/SellSmart-RetailPortal/en_US/sanginionline/thumbnails/Thumbnails_2797.gif"+"</imageURL>");
				buffer.append("</product>");
				
				buffer.append("</Response>");
				
				resp.setContentType("text/xml");
				
		    resp.getWriter().print(buffer.toString());
				resp.flushBuffer();}
}